home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / guidexv / group_impl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  2.4 KB  |  76 lines

  1. /*
  2.  * @(#)group_impl.h    2.11 91/10/15 Copyright 1991 Sun Microsystems
  3.  *
  4.  * This file is a product of Sun Microsystems, Inc. and is provided for
  5.  * unrestricted use provided that this legend is included on all tape
  6.  * media and as a part of the software program in whole or part.  Users
  7.  * may copy or modify this file without charge, but are not authorized to
  8.  * license or distribute it to anyone else except as part of a product
  9.  * or program developed by the user.
  10.  * 
  11.  * THIS FILE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  12.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  13.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  14.  * 
  15.  * This file is provided with no support and without any obligation on the
  16.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  17.  * modification or enhancement.
  18.  * 
  19.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  20.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS FILE
  21.  * OR ANY PART THEREOF.
  22.  * 
  23.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  24.  * or profits or other special, indirect and consequential damages, even
  25.  * if Sun has been advised of the possibility of such damages.
  26.  * 
  27.  * Sun Microsystems, Inc.
  28.  * 2550 Garcia Avenue
  29.  * Mountain View, California  94043
  30.  */
  31.  
  32. #ifndef guide_group_impl_DEFINED
  33.  
  34. #include    "group.h"
  35.  
  36. typedef struct {
  37.     Xv_object        public_self;
  38.     GROUP_TYPES        group_type;
  39.     Xv_opaque        *members;
  40.     int            cols;
  41.     GROUP_COLUMN_ALIGNMENTS    col_alignment;
  42.     int            rows;
  43.     GROUP_ROW_ALIGNMENTS    row_alignment;
  44.     int            hspacing;
  45.     int            vspacing;
  46.     Xv_opaque        anchor_obj;     /* Object anchored to */
  47.     GROUP_COMPASS_POINTS    anchor_point;     /* Point on anchor obj */
  48.     GROUP_COMPASS_POINTS    reference_point; /* Point on group */
  49.     int            hoffset;
  50.     int            voffset;
  51.     Rect            group_rect;
  52.     Rect            value_rect;
  53.     int            initial_x;
  54.     int            initial_y;
  55.     unsigned int        flags;
  56. } Group_private;
  57.  
  58. Pkg_private int        group_init();
  59. Pkg_private Xv_opaque    group_set();
  60. Pkg_private Xv_opaque    group_get();
  61. Pkg_private int        group_destroy();
  62.  
  63. #define    GROUP_PUBLIC(item)    XV_PUBLIC(item)
  64. #define    GROUP_PRIVATE(item)    XV_PRIVATE(Group_private, Group_public, item)
  65.  
  66. typedef enum {
  67.         CREATED        = (1L << 0),
  68.         LAYOUT        = (1L << 1),
  69.         INACTIVE    = (1L << 2),
  70.         SHOWING        = (1L << 3),
  71.         ROWFIRST    = (1L << 4),
  72.         COLFIRST    = (1L << 5)
  73. } GROUP_FLAGS;
  74.  
  75. #endif guide_group_impl_DEFINED
  76.